import scrapy


class MusicCrawler(scrapy.Spider):
    name = "musiccrawler"
    start_urls = ['http://music.163.com/#/playlist?id=766893205']

    def parse(self, response):
        filename = "test.txt"
        with open(filename, 'wb') as f:
            f.write(response.body)